40 OPEN"r",1,"autoarea.cfg":IF LOF(1)=0 THEN CLOSE:KILL"autoarea.cfg":GOTO 100 ELSE CLOSE:OPEN"i",1,"autoarea.cfg"
45 FOR X=1 TO 3000:NEXT
50 INPUT #1,HIGHAREA:INPUT #1,DRIVESPEC$
60 IF NOT EOF(1) THEN DR=DR+1:INPUT #1,A$(DR):GOTO 60 ELSE CLOSE
100 CLS:PRINT"The beginning of the user-defined message segment is area:";HIGHAREA:PRINT"The Drivespec for the directory off which the message areas are to be located is";DRIVESPEC$
120 IF AN$="D" OR AN$="d" THEN 300 ELSE IF AN$="N" OR AN$="n" THEN 200 ELSE 400
200 INPUT"At what area should the user defined areas begin";HIGHAREA:IF HIGHAREA<1 OR HIGHAREA>254 THEN PRINT"OUT OF RANGE (1-254):goto 200
210 GOTO 100
300 LINE INPUT"Enter the drivespec (ie C:\opus\) of the ROOT directory off which the message area directories are located. This MUST be ended by a backslash (\):";DRIVESPEC$
310 IF DRIVESPEC$="" THEN DRIVESPEC$="C:\opus\"
320 IF RIGHT$(DRIVESPEC$,1)<>"\" THEN DRIVESPEC$=DRIVESPEC$+"\"
330 GOTO 100
400 IF DR>0 THEN 490 ELSE A$="dir "+DRIVESPEC$+">autoarea.tmp":SHELL A$
410 OPEN"i",1,"autoarea.tmp"
420 IF NOT EOF(1) THEN DR=DR+1:INPUT #1,A$:A$(DR)=LEFT$(A$,8):GOTO 420 ELSE CLOSE
430 KILL"autoarea.tmp":DR=DR-1
490 OPEN"o",1,"autoarea.cfg":PRINT #1,HIGHAREA:WRITE #1,DRIVESPEC$:FOR X=1 TO DR:PRINT #1,A$(X):NEXT:CLOSE:SYSTEM
1070 OPEN"r",1,SEARCH$:GET 1,3:FIELD 1,80 AS A$,40 AS B$:LSET B$=AREA$:PUT 1,3:GET 1,4:C$=DRIVESPEC$+DIR$+"\":FIELD 1,2 AS A$,LEN(C$) AS B$:LSET B$=C$:PUT 1,4:CLOSE
1080 C$=C$+"areainfo.bbs":OPEN"o",1,C$:PRINT #1,CHR$(22);CHR$(1);CHR$(16);CHR$(142):PRINT #1,AREA$:PRINT #1,"---hosted by ";USER$:CLOSE
1081 OPEN"o",1,"autoarea.cfg":PRINT #1,HIGHAREA:PRINT #1,DRIVESPEC$:FOR X=1 TO DR:PRINT #1,A$(X):NEXT:PRINT #1,DIR$:CLOSE
1090 OPEN"o",1,"response.bbs"
1091 PRINT #1,CHR$(22);CHR$(1);CHR$(16);CHR$(142):PRINT #1,"Your new area... ";AREA$;"... has been created.":PRINT #1,"It is area";Y:PRINT #1," ":PRINT#1,"Be aware that the sysop reserves the right to review the area, and to decide"
1100 PRINT#1,"if it should be kept, deleted, or distributed over the network.":PRINT#1," ":PRINT#1,"Thanks for using AUTOAREA by Doug Rogers, 108/110":CLOSE:SYSTEM
1200 OPEN"o",1,"response.bbs":PRINT #1,"Area not created... The area name entered is invalid...":CLOSE:SYSTEM
1300 OPEN"o",1,"response.bbs":PRINT#1,"Area not created... The short name asked for is invalid...":CLOSE:SYSTEM
2000 OPEN"o",1,"response.bbs":PRINT #1,"Area not created... The short name for the area is already in use.":CLOSE:SYSTEM